package main

import (
	"fmt"
	"github.com/duke-git/lancet/v2/strutil"
)

/*
go get github.com/duke-git/lancet/v2

全面、高效、可复用
300+常用go工具函数，支持string、slice、datetime、net、crypt...
只依赖go标准库
*/
func main() {
	//	字符串反转
	s := "hello"
	rs := strutil.Reverse(s)
	fmt.Println(rs) //olleh
	//	算法：import "github.com/duke-git/lancet/v2/algorithm"
	//	并发：import "github.com/duke-git/lancet/v2/concurrency"
	//	convertor转换器包支持一些常见的数据类型转换。import "github.com/duke-git/lancet/v2/convertor"
	//  cryptor加密包支持数据加密和解密 import "github.com/duke-git/lancet/v2/cryptor"
	//	datetime日期时间处理包：import "github.com/duke-git/lancet/v2/datetime"
	//	文件：import "github.com/duke-git/lancet/v2/fileutil"
	//	格式化：import "github.com/duke-git/lancet/v2/formatter"
	//	maputil包包括一些操作map的函数.import "github.com/duke-git/lancet/v2/maputil"
	//	数学计算：import "github.com/duke-git/lancet/v2/mathutil"
	//	网络，协议等：import "github.com/duke-git/lancet/v2/netutil"
	//	随机：import "github.com/duke-git/lancet/v2/random"
	//	函数重试：import "github.com/duke-git/lancet/v2/retry"
	//	slice操作：import "github.com/duke-git/lancet/v2/slice"
	//	字符串操作：import "github.com/duke-git/lancet/v2/strutil"
	//	环境变量、系统参数：import "github.com/duke-git/lancet/v2/system"
	//	校验：import "github.com/duke-git/lancet/v2/validator"
	//	异常处理：import "github.com/duke-git/lancet/v2/xerror"
}
